package com.tuling.generic;

/**
 * @author 林瑞涛
 * @desc
 * @date 2023年02月09日 14:57
 */
public class DemoTest01 {
    public static void main(String[] args) {
        //Father<Integer, String> f = new Child<>(1, "2");
        Child<Integer, String, Boolean> c = new Child<>(1, "2");
    }
}
class Father<T1, T2>{
    T1 t1;
    T2 t2;

    public Father(T1 t1, T2 t2) {
        this.t1 = t1;
        this.t2 = t2;
        System.out.println("t1的类型：" + this.t1.getClass());
        System.out.println("t2的类型：" + this.t2.getClass());
    }
}
class Child<T1, T2, T3> extends Father<Integer, String>{

    public Child(Integer integer, String string) {
        super(integer, string);
    }
}